SOURCES=eoe.c
OBJECTS=$(SOURCES)
EXECUTABLE=eoe

PKG_CONFIG=`pkg-config --cflags --libs ewl`

all: $(OBJECTS) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(SET_ENV) $(CC) -o $@ $(PKG_CONFIG) $?

install:
	sudo cp ${EXECUTABLE} /usr/local/bin
	@echo "${EXECUTABLE} installed!"

remove: 
	rm /usr/local/bin/${EXECUTABLE}
